<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="left">
    <div id="my_menu" class="sdmenu">
        <?php foreach($menuGroup as $menu):?>
        <div<?php if(!$menu['current']):?> class="collapsed"<?php else:?> class=""<?php endif;?>>
            <span><?php echo $menu['text'];?></span>
            <?php foreach($menu['menu'] as $method):?>
                <a href="<?php echo site_url($method['href']);?>" class="<?php echo $method['perm'];?><?php if($method['current']):?> current<?php endif;?>"><?php echo $method['text'];?></a>
            <?php endforeach;?>
        </div>
        <?php endforeach;?>
    </div>
</div>
<div class="Switch"></div>
